home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / shared.dir / 01064_Script_1064 < prev    next >
Text File  |  1994-11-15  |  11KB  |  369 lines

  1. on FrankNavPress
  2.   global btnsuccess, nowFrame, currIntro
  3.   global b1Up, b2Up, b3Up, b4Up, b5Up, b6Up, nullUp, null5Up, linkBarOn
  4.   global b1Dn, b2Dn, b3Dn, b4Dn, b5Dn, b6Dn, nullDn, null5Dn, bRest
  5.   global b1Tx, b2Tx, b3Tx, b4Tx, b5Tx, b6Tx, null3Tx, null5Tx, currMM
  6.   global indexFrame, helpFrame, lastMovie, lastFrame, reEntry, dialogOn
  7.   global helpMov, hiframe
  8.   global HMOpen,HMOBJ,helpFlag   -- is used for xmit DLL
  9.   
  10.   set btnsuccess = FALSE
  11.   
  12.   if dialogOn = FALSE then
  13.     
  14.     if the mouseV > 449 and the mouseV < 476 then
  15.       
  16.       if the mouseH > 348 and the mouseH < 372 then
  17.         set gBtn = "b1"
  18.       else if the mouseH > 394 and the mouseH < 419 then
  19.         set gBtn = "b2"
  20.       else if the mouseH > 440 and the mouseH < 466 then
  21.         set gBtn = "b3"
  22.       else if the mouseH > 486 and the mouseH < 512 then
  23.         set gBtn = "b4"
  24.       else if the mouseH > 532 and the mouseH < 558 then
  25.         set gBtn = "b5"
  26.       else if the mouseH > 578 and the mouseH < 604 then
  27.         set gBtn = "b6"
  28.       else
  29.         set gBtn = "b0"
  30.       end if
  31.       --sound stop 1
  32.       
  33.     else
  34.       set gBtn = "b0"
  35.     end if
  36.     
  37.     if gBtn = "b3" then
  38.       if chars(nowFrame,12,12) = "f" or chars(nowFrame,12,12) = "n" then
  39.         set gBtn = "null"
  40.       end if
  41.     else if gBtn = "b5" then
  42.       if chars(nowFrame,12,12) = "u" or chars(nowFrame,12,12) = "n" then 
  43.         set gBtn = "null"
  44.       end if
  45.     end if
  46.     
  47.     if gBtn <> "b0" then
  48.       do "set the castNum of sprite 23 to" && gBtn & "dn"
  49.       updateStage
  50.     end if
  51.     
  52.     put the timer + 10 into time
  53.     repeat while the timer < time
  54.     end repeat
  55.     
  56.     repeat while the stillDown
  57.       
  58.       if the mouseV > 449 and the mouseV < 476 then
  59.         if the mouseH > 348 and the mouseH < 372 then
  60.           set gBtn = "b1"
  61.         else if the mouseH > 394 and the mouseH < 419 then
  62.           set gBtn = "b2"
  63.         else if the mouseH > 440 and the mouseH < 466 then
  64.           set gBtn = "b3"
  65.         else if the mouseH > 486 and the mouseH < 512 then
  66.           set gBtn = "b4"
  67.         else if the mouseH > 532 and the mouseH < 558 then
  68.           set gBtn = "b5"
  69.         else if the mouseH > 578 and the mouseH < 604 then
  70.           set gBtn = "b6"
  71.         else
  72.           set gBtn = "b0"
  73.         end if
  74.       else
  75.         set gBtn = "b0"
  76.       end if
  77.       
  78.       if gBtn = "b2" then
  79.         if (chars(nowFrame,1,2) = "hi") then
  80.           if chars(nowFrame,6,8) = "ind" then 
  81.             set gBtn = "null"
  82.           end if
  83.         end if
  84.       else if gBtn = "b3" then
  85.         if chars(nowFrame,12,12) = "f" or chars(nowFrame,12,12) = "n" then
  86.           set gBtn = "null"
  87.         end if
  88.       else if gBtn = "b5" then
  89.         if chars(nowFrame,12,12) = "u" or chars(nowFrame,12,12) = "n" then 
  90.           set gBtn = "null"
  91.         end if
  92.       else if gBtn = "b6" then
  93.         if chars(nowFrame,6,8) <> "ind" then
  94.           if (chars(nowFrame,1,2) = "hi") then 
  95.             set gBtn = "null"
  96.           end if
  97.         end if
  98.       end if
  99.       
  100.       if gBtn = "b0" then
  101.         set the castNum of sprite 23 to bRest
  102.         set btnSuccess = FALSE
  103.       else
  104.         do "set the castNum of sprite 23 to" && gBtn & "dn"
  105.         set btnSuccess = TRUE
  106.       end if
  107.       
  108.       updateStage    
  109.     end repeat
  110.     
  111.     if gBtn <> "b0" then 
  112.       do "set the castNum of sprite 23 to" && gBtn & "up"
  113.       set btnSuccess to TRUE  
  114.     end if
  115.     
  116.     updateStage
  117.     
  118.     set jmpFlag = FALSE
  119.     
  120.     --ò THIS IS THE SOUND STOP, OK?
  121.     sound stop 1
  122.     
  123.     if btnSuccess = TRUE and gBtn = "b1" then
  124.       updateStage
  125.       set reEntry = TRUE
  126.       saveLocals
  127.       --ò REMOVED a line converting at, ch, and de to ww... EB 9/9
  128.       
  129.       if chars(nowFrame,1,2) = "hi" then
  130.         --set helpMov = 1
  131.         repeat with i = 3 to 24
  132.           puppetSprite i, FALSE
  133.         end repeat
  134.         go to frame "hi000quit00n°°"
  135.       else
  136.         set helpMov = 0
  137.         go to frame "hi000quit00n°°" of movie "FLWHI"
  138.       end if
  139.     end if
  140.     
  141.     if  btnsuccess = TRUE and gBtn = "b2" then
  142.       updateStage
  143.       set reEntry = TRUE
  144.       saveLocals
  145.       --ò FIXED getting to Index from Help... EB 9/9
  146.       if chars(nowFrame,1,2) = "hi" then
  147.         set helpMov = 1
  148.         set hiFrame = nowFrame
  149.         repeat with i = 3 to 15
  150.           puppetSprite i, FALSE
  151.         end repeat
  152.         go to frame "hi001indiii°°°"
  153.       else
  154.         set helpMov = 0
  155.         go to frame "hi001indiii°°°" of movie "FLWHI"
  156.       end if
  157.     end if
  158.     
  159.     if btnsuccess = TRUE and gBtn = "b3" then
  160.       --ò UNCOMMENTED the following sound... EB 9/9
  161.       --ò REVISED sound handler to exclude Life and Times... EB 9/13
  162.       --ò RE-COMMENTED the following sound... EB 9/21
  163.       if (chars(nowFrame,12,12) = "n") or (chars(nowFrame,12,12) = "f") then
  164.         beep  
  165.       else 
  166.         do chars(nowFrame,1,2) & "BackStep"
  167.       end if
  168.     end if
  169.     
  170.     if Btnsuccess = TRUE and gBtn = "b4" then
  171.       updateStage
  172.       set btnsuccess = FALSE
  173.       ------
  174.       if helpMov = 1 then
  175.         set helpMov = 0
  176.         repeat with i = 4 to 19
  177.           puppetSprite i, FALSE
  178.         end repeat
  179.         go to frame hiFrame
  180.       else if (chars(nowFrame,9,11) = "hhh") or (chars(nowFrame,9,11) = "iii") then
  181.         set helpMov = 0
  182.         go to frame lastFrame of movie lastMovie
  183.       else if chars(nowFrame,1,2) = "se" then
  184.         if chars(nowFrame,3,5) = "mai" then
  185.           go to frame "mmmai000000f°°" of movie "FLWMM"
  186.         else
  187.           gUnPuppet
  188.           go to frame "semai000000f°°" of movie "FLWSEO"
  189.         end if
  190.         updateStage
  191.       else 
  192.         if currMM <> "FLWMM" then
  193.           go to movie currMM
  194.         else
  195.           go to frame "mmmai000000f°°" of movie "FLWMM"
  196.         end if
  197.       end if
  198.     end if
  199.     
  200.     if Btnsuccess = TRUE and gBtn = "b5" then
  201.       --ò UNCOMMENTED the following sound... EB 9/9
  202.       --ò REVISED sound handler to exclude Life and Times... EB 9/13
  203.       --ò RE-COMMENTED the following sound... EB 9/21
  204.       if (chars(nowFrame,12,12) = "n") or (chars(nowFrame,12,12) = "u") then
  205.         beep
  206.       else
  207.         --if chars(nowFrame,1,2) <> "LT" then
  208.         --puppetSound "NEXT.SC"
  209.         --updateStage
  210.         --end if
  211.         do chars(nowFrame,1,2) & "ForStep"
  212.       end if
  213.     end if
  214.     
  215.     if Btnsuccess = TRUE and gBtn = "b6" then
  216.       updateStage
  217.       set reEntry = TRUE
  218.       saveLocals
  219.       if chars(nowFrame,6,8) = "ind" then
  220.         set helpMov = 1
  221.         set hiFrame = nowFrame
  222.         repeat with i = 7 to 15
  223.           puppetSprite i, FALSE
  224.         end repeat
  225.         go to frame "hi000mmhhhhf°°"
  226.       else
  227.         if chars(nowFrame,1,2) = "lb" or chars(nowFrame,1,2) = "rh" then
  228.           put "eh" into char 1 to 2 of nowFrame
  229.         end if
  230.         if chars(nowFrame,1,2) = "mm" then
  231.           set helpFrame = "hi000mmhhhhf°°"
  232.         else if chars(nowFrame,1,2) = "li" then
  233.           set helpFrame = "hi000lihhhhu°°"
  234.         else if nowFrame = "semai000000f°°" then
  235.           set helpFrame = "hi000semhhh°°°"
  236.         else if nowFrame = "chmai000000n°°" then
  237.           set helpFrame = "hi000wwhhhh°°°"
  238.         else
  239.           set helpFrame = "hi000" & chars(nowFrame,1,2) & "hhhh°°°"
  240.         end if
  241.         go to frame helpFrame of movie "FLWHI"
  242.         set helpFrame = "0"
  243.       end if
  244.     end if
  245.   end if
  246.   
  247.   if the mouseCast = 1004  then
  248.     closeDialog
  249.   end if
  250.   flush
  251. end FrankNavPress
  252.  
  253. on doState
  254.   global bFlag, nowFrame, seeAlsoNess, seeAlsoBlock, seeAlsoBox
  255.   global b1Up, b2Up, b3Up, b4Up, b5Up, b6Up, nullUp, null5Up
  256.   global b1Dn, b2Dn, b3Dn, b4Dn, b5Dn, b6Dn, nullDn, null5Dn, bRest
  257.   global b1Tx, b2Tx, b3Tx, b4Tx, b5Tx, b6Tx, null3Tx, null5Tx, lastBtn, linkWord
  258.   
  259.   if the mouseV > 449 and the mouseV < 476 then
  260.     if the mouseH > 348 and the mouseH < 372 then
  261.       set gBtn = "b1"
  262.       if lastBtn <> "b1" then
  263.         set nowState = FALSE
  264.         set lastBtn = "b1"
  265.       end if
  266.     else if the mouseH > 394 and the mouseH < 419 then
  267.       set gBtn = "b2"
  268.       if lastBtn <> "b2" then
  269.         set nowState = FALSE
  270.         set lastBtn = "b2"
  271.       end if
  272.     else if the mouseH > 440 and the mouseH < 466 then
  273.       set gBtn = "b3"
  274.       if lastBtn <> "b3" then
  275.         set nowState = FALSE
  276.         set lastBtn = "b3"
  277.       end if
  278.     else if the mouseH > 486 and the mouseH < 512 then
  279.       set gBtn = "b4"
  280.       if lastBtn <> "b4" then
  281.         set nowState = FALSE
  282.         set lastBtn = "b4"
  283.       end if
  284.     else if the mouseH > 532 and the mouseH < 558 then
  285.       set gBtn = "b5"
  286.       if lastBtn <> "b5" then
  287.         set nowState = FALSE
  288.         set lastBtn = "b5"
  289.       end if
  290.     else if the mouseH > 578 and the mouseH < 604 then
  291.       set gBtn = "b6"
  292.       if lastBtn <> "b6" then
  293.         set nowState = FALSE
  294.         set lastBtn = "b6"
  295.       end if
  296.     else
  297.       set gBtn = "b0"
  298.       set lastBtn = "b0"
  299.     end if
  300.   else
  301.     set gBtn = "b0"
  302.     set lastBtn = "b0"
  303.   end if
  304.   
  305.   --ò seeAlsoBlock added by EB 9/12 (for the benefit of LT QuickTime frames)
  306.   --ò seeAlsoBlock COMMENTED by EB 9/23
  307.   --if seeAlsoBlock <> TRUE then
  308.   if rollover(21) then
  309.     if seeAlsoNess = TRUE then
  310.       set the castNum of sprite 21 to 1047
  311.       set the locV of sprite 22 to the locV of sprite 21 - 138
  312.       set seeAlsoBox to TRUE
  313.     else
  314.       set the castNum of sprite 21 to 1050
  315.       set the locV of sprite 22 to the locV of sprite 21 + 12
  316.       set seeAlsoBox to FALSE
  317.     end if 
  318.   else
  319.     set the castNum of sprite 21 to 1050
  320.     set the locV of sprite 22 to the locV of sprite 21 + 12
  321.     set seeAlsoBox to FALSE
  322.   end if
  323.   --end if
  324.   
  325.   if gBtn = "b2" then
  326.     if (chars(nowFrame,1,2) = "hi") then
  327.       if chars(nowFrame,6,8) = "ind" then 
  328.         set gBtn = "null"
  329.       end if
  330.     end if
  331.   else if gBtn = "b3" then
  332.     if (chars(nowFrame,12,12) = "n") or chars(nowFrame,12,12) = "f" then
  333.       set gBtn = "null"
  334.     end if
  335.   else if gBtn = "b5" then
  336.     if (chars(nowFrame,12,12) = "n") or chars(nowFrame,12,12) = "u" then 
  337.       set gBtn = "null"
  338.     end if
  339.   else if gBtn = "b6" then
  340.     if chars(nowFrame,6,8) <> "ind" then
  341.       if (chars(nowFrame,1,2) = "hi") then 
  342.         set gBtn = "null"
  343.       end if
  344.     end if
  345.   end if
  346.   
  347.   if gBtn = "b0" then
  348.     set the castNum of sprite 23 to bRest
  349.   end if
  350.   
  351.   if  gBtn <> "b0" then
  352.     if nowState = FALSE then
  353.       do "set the castNum of sprite 23 to" && gBtn & "Up"
  354.       set bFlag = TRUE
  355.     end if 
  356.   end if    
  357.   
  358.   if nowState = TRUE then
  359.     if gBtn = "b0" then
  360.       set the castNum of sprite 23 to bRest
  361.       set bFlag = FALSE 
  362.       set nowState = FALSE
  363.     end if
  364.   end if
  365.   
  366.   
  367.   updateStage 
  368.   
  369. end doState